package com.open.capacity.reimburse.dao;

import com.open.capacity.reimburse.dto.CarApplyHistoryDto;
import com.open.capacity.reimburse.entity.BaseCar;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 车辆
 *
 * @author
 * @email
 * @date 2021-03-01 10:14:42
 */
@Mapper
public interface BaseCarDao {

    int save(BaseCar baseCar);

    int updateProcessId(@Param("id") String id, @Param("processId") String processId);

    int update(BaseCar baseCar);

    int delete(String id);

    BaseCar findById(String id);

    BaseCar findByLicensePlateNumber(String licensePlateNumber);

    List<BaseCar> findAll(Map<String, Object> params);

    List<CarApplyHistoryDto> findHistory(Map<String, Object> params);

}
